package code16_反射;

/**
 * @author 黄衡熙
 * @version 1.0
 */
public class Emp {

    @Value("id")
    private Integer id;
    @Value("name")
    private String name;
    @Value("salary")
    private Double salary;

    @Override
    public String toString() {
        return "Emp{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", salary=" + salary +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }
}